package com.five.welcome.controller;


import com.baomidou.mybatisplus.annotation.TableId;
import com.five.welcome.entity.statistic.HaveBD;
import com.five.welcome.result.Result;
import com.five.welcome.service.StudentbdService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ywt
 * @since 2024-07-27
 */
@CrossOrigin
@Slf4j
@Tag(name = "学生报道完成情况")
@RestController
@RequestMapping("/studentbd")
public class StudentbdController {

    @Autowired
    private StudentbdService studentbdService;

    //统计报道情况
    @Operation(summary = "统计报道情况")
    @GetMapping("/BDStatistic")
    public Result BDStatistic() {
        HaveBD haveBD = studentbdService.BDStatistic();
        return Result.ok(haveBD);
    }
}
